<?php


class CalendarEvent {
	public $id; 	
	public $title;
	public $description; 	
	public $start;
	public $end;
	public $allDay = false;
	public $stationId;
	public $tools;
	public $is_maintained;
	public $ownerType;
	public $station;

	public function render() {
		echo "{";
		echo "title : '" . $this->title . "',";
		echo "allDay : false,";
		echo "description: '" . $this->description . "',";
		echo "start: new Date(". $this->start ."*1000),";
		echo "end: new Date(". $this->end ."*1000)";
		echo "}";
	}
}